﻿using System.Data.Entity;

namespace SuperJ.Web.Areas.Admin.Models
{
    public class SuperJLiveEntities : DbContext
    {
        
            public DbSet<Announce> Announce { get; set; }

            protected override void OnModelCreating(DbModelBuilder modelBuilder)
            {
                modelBuilder.Types().Configure(f => f.ToTable("SuperJ_" + f.ClrType.Name));
                //轻松为数据表名设定生成规则
            }
        
    }
}